// app/model/user.js
module.exports = (app) => {
	const {
		STRING,
		INTEGER,
		BIGINT,
		DATE
	} = app.Sequelize;
	const Comment = app.model.define("comment", {
		id: {
			type: INTEGER,
			primaryKey: true,
			autoIncrement: true
		},
		valueId: INTEGER,
		type: INTEGER,
		content: STRING,
		userId: INTEGER,
		hasPicture: INTEGER,
		picUrls: STRING,
		star: INTEGER,
		addTime: DATE,
		updateTime: DATE,
		deleted: INTEGER
	}, {
		tableName: "dts_comment",
		paranoid: false,
		timestamps: false,
		freezeTableName: true
	});

	return Comment;
};
